package com.boot.mall.order.feign;

import com.boot.mall.order.vo.OrderCartItem;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("mall-cart")
public interface CartFeignService {

    /**
     * 查询选中的购物项
     * @param memberId
     * @return
     */
    @GetMapping("/getCheckItems/{memberId}/cartItems")
    List<OrderCartItem> getCheckItems(@PathVariable("memberId") Long memberId);


}
